/**
 *@des 个人中心相关接口
 *@author yiiframe 21931118@qq.com
 *@blog http://www.yiiframe.com
 *@date 2019/1/1 07:25:00
 */
import request from './request.js'
/**
 * 修改密码
 */
export function updatePass(user) {
	const data = {
		password: user.oldPass,
		newPassword: user.newPass
	}
	return request({
		url: '/user/updPassword',
		method: 'post',
		data
	})
}

/**
 * 查询日志
 */
export function logData(data) {
	return request({
		url: '/log/page',
		method: 'get',
		data
	})
}


/**
 * 查询数量公告
 */
export function unread() {
	return request({
		url: '/message/my/unread',
		method: 'get',
	})
}
/**
 * 查询我的待办任务总数
 */
export function mylistManage() {
  return request({
    url: '/view/task/manage/mylist/count',
    method: 'post',
  })
}